package com.engine4cloud.tdf.supervision.dto.create;

import com.engine4cloud.tdf.supervision.dto.JzdxFileDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 日常报告
 *
 * @author wenjie
 * @date 2024-04-26 14:42:29
 */
@Data
@Schema(description = "日常报告-请求对象")
public class RcglDailyReportCreateDTO implements Serializable {
    /**
     * 矫正人员编号
     */
    @Schema(description = "矫正人员编号")
    @NotBlank(message = "矫正人员编号不能为空")
    private String rybh;

    /**
     * 报告时间
     */
    @Schema(description = "报告时间")
    @NotNull(message = "报告时间不能为空")
    private LocalDateTime bgsj;

    /**
     * 报告方式
     */
    @Schema(description = "报告方式", example = "01")
    @NotBlank(message = "报告方式不能为空")
    private String bgfs;

    /**
     * 报告内容
     */
    @Schema(description = "报告内容")
    @NotBlank(message = "报告内容不能为空")
    private String bgnr;

    /**
     * 记录人
     */
    @Schema(description = "记录人")
    @NotBlank(message = "记录人不能为空")
    private String jlr;

    /**
     * 记录时间
     */
    @Schema(description = "记录时间")
    @NotNull(message = "记录时间不能为空")
    private LocalDateTime jlsj;

    /**
     * 相关法律文书材料
     */
    @Schema(description = "文书材料", example = """
            [{"name": "张三.png",
            "url": "/supervision/oss-file/oss/file?fileName=09468fc20f2544e28891a058858fdf58.jpeg"}
            ]""")
    private List<JzdxFileDTO> instrumentList;

}